import 'package:flutter/services.dart';

class AndroidInterface {
  static const MethodChannel _channel =
  MethodChannel('com.yize.cap_minded');

  static Future<String?> callAarMethod(String methodName, [dynamic args]) async {
    try {
      final String? result = await _channel.invokeMethod(methodName, args);
      return result;
    } on PlatformException catch (e) {
      return "Failed to call method: '${e.message}'.";
    }
  }
}